package com.sh.data.engine.repository.dao.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sh.data.engine.repository.dao.base.EngineBaseModel;
import lombok.*;

import java.util.Date;

/**
 * @author : fuchen
 * @date : 2022/1/25 11:31
 */

@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
@TableName("tb_data_api_call_record")
@EqualsAndHashCode(callSuper = true)
public class DataApiCallRecordEntity extends EngineBaseModel<DataApiCallRecordEntity> {


    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * api id
     */
    private Long dataApiId;

    /**
     * 请求方式 0-手工测试 1-接口调用
     */
    private Integer callType;

    /**
     * 调用状态 0-成功 1-超时 2-未认证 3-参数错误 4-系统错误 5-其他
     */
    private Integer callStatus;

    /**
     * 调用开始时间
     */
    private Date callBeginTime;

    private String requestAddress;

    private Long effectRow;

    /**
     * 调用结束时间
     */
    private Date callEndTime;

    private Integer ignored;

    /**
     * 是否已统计 0-未统计 1-已统计
     */
    private Integer isProcessed;
}
